<?php
/**
 * Created by PhpStorm.
 * User: teddy
 * Date: 6/30/16
 * Time: 9:52 AM
 */

?>

<!--HTML-->
<html lang="zh-CN">
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta name="description" content="21 cake Api test">
    <meta name="author" content="Teddy Long">
    <!--ICON-->
    <link rel="icon" href="favicon.ico" type="image/x-icon" />
    <link rel="shortcut icon" href="favicon.ico" type="image/x-icon" />
    <!--Title-->
    <title>21 Cake AppUI Test Portal</title>
    <!--BootStrap Component-->
    <link href="css/bootstrap.min.css" rel="stylesheet">
    <link href="css/bootstrap-theme.min.css" rel="stylesheet">
    <link href="css/bootstrap-table.min.css" rel="stylesheet" >
    <link href="css/font-awesome.css" rel="stylesheet">
    <link href="css/theme.css" rel="stylesheet" >
    <!--BootStrap Select-->
    <link href="css/bootstrap-select.css" rel="stylesheet" >
</head>

<body role="document">
<!--fixed nav bar-->
<nav class="navbar navbar-inverse navbar-fixed-top">
    <div class="container">
        <div class="navbar-header">
            <a class="navbar-brand" href="index.php">21 Cake</a>
        </div>
        <div id="navbar" class="navbar-collapse collapse">
            <ul class="nav navbar-nav">
                <li class="active"><a href="index.php">Home</a></li>
            </ul>
        </div>
    </div>
</nav>
<!--Header Image-->
<header class="sb-page-header">
    <div class="container">
        <h1>21 Cake AppUI Test</h1>
    </div>
</header>
<div class="container" role="main">
    <div class="row">
        <!--Job Run-->
        <div class="panel panel-primary">
            <div class="panel-heading">Job Run</div>
            <div class="panel-body">
                <div class="col-sm-2">
                    <button type="button" onclick="goRun()" id="RunBtn" class="btn btn-primary">Run Job on iMac</button>
                </div>
                <!--Loading Div-->
                <div class="col-sm-1" style="width: inherit;">
                    <div style="margin-top: 3px;margin-left: -25px;" id="LoadingDiv"></div>
                </div>
                <!--Message Div-->
                <div class="col-sm-2" style="width: inherit;">
                    <div id="MessageText"></div>
                </div>
            </div>
        </div>
        <!--Job List-->
        <div class="panel panel-primary">
            <div class="panel-heading">Job List</div>
            <table id="JobTable"
                   data-toggle="table"
                   data-url="getAppUITestJob.php"
                   data-sort-name="id"
                   data-sort-order="desc"
                   data-pagination="true"
                   data-row-style="rowStyle">
                <thead>
                <tr>
                    <th data-sortable="true" data-halign="center" data-align="center" data-field = "id">JobID</th>
                    <th data-halign="center" data-align="center" data-field= "name">Name</th>
                    <th data-sortable="true" data-halign="center" data-align="center" data-field= "status">Status</th>
                    <th data-sortable="true" data-halign="center" data-align="center" data-field= "date">Start Time</th>
                    <th data-sortable="true" data-halign="center" data-align="center" data-field= "successCount">Success Case</th>
                    <th data-sortable="true" data-halign="center" data-align="center" data-field= "failCount">Fail Case</th>
                </tr>
                </thead>
            </table>
        </div>
    </div>
</div>
<!--Footer-->
<footer class="bs-docs-footer" role="contentinfo">
    <div class="container">
        <hr>
        <p>Maintained by <a href="http://localhost">21 Cake Test Team</a></p>
        <p>Copyright © 2016 <a href="http://www.21cake.com">21Cake</a>. All Rights Reserved</p>
    </div>
</footer>
<!--JS LOAD-->
<script src="js/jquery.min.js"></script>
<script data-pace-options='{ "document": true }' src="js/pace.min.js"></script>
<script src="js/bootstrap.min.js"></script>
<script src="js/bootstrap-table.min.js"></script>
<script src="js/bootstrap-select.js"></script>
<script src="js/highcharts.js"></script>
<script src="js/data.js"></script>
<script src="js/AppUI.js"></script>
</body>
</html>
